package sdu.icat.pj.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import sdu.icat.sys.smodel.SysNotice;

@Repository
public interface SysNoticeRepository extends JpaRepository<SysNotice, Long>{

   Page<SysNotice> findAll(Specification<SysNotice> spec);
   
   Page<SysNotice> findAll(Specification<SysNotice> spec,Pageable pageable);
   
   List<SysNotice> findByIsShow(boolean isshow);
    
}
